<template>
  <div class="ignore-cart-list">
    <scroll class="cart-scroll">
      <cart-list-item
        v-for="(item, index) in cartList"
        :key="index"
        :itemData="item"
      />
    </scroll>
  </div>
</template>

<script>
import { mapGetters } from "vuex";

import Scroll from "components/common/scroll/Scroll";

import CartListItem from "./CartListItem";

export default {
  name: "CartList",
  components: {
    Scroll,
    CartListItem
  },
  computed: {
    ...mapGetters(["cartList"])
  }
};
</script>

<style scoped>
.ignore-cart-list {
  height: calc(100% - 44px - 40px);
  /* background-color: rgb(123, 201, 87); */
}

.cart-scroll {
  height: 100%;
}
</style>
